Mauna Loa Modeling CO2 Levels using Linear Regression

Easy Method using goem_smooth()

## `geom_smooth()` using formula 'y ~ x'

More Difficult Method Plotting (using base R)lm function

## 
## Call:
## lm(formula = CO2$x ~ CO2$t)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -1.2177 -0.3007  0.0110  0.2896  1.0808 
## 
## Coefficients:
##               Estimate Std. Error t value Pr(>|t|)    
## (Intercept) -55.248625   6.517666  -8.477 8.59e-12 ***
## CO2$t         0.028577   0.003277   8.721 3.34e-12 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.4506 on 59 degrees of freedom
## Multiple R-squared:  0.5632, Adjusted R-squared:  0.5558 
## F-statistic: 76.06 on 1 and 59 DF,  p-value: 3.337e-12

More Elaborate Trend: Quadratic Model